package com.alex.index.insert.nsfctest;

import lombok.Data;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * @Author: 葛成瑞
 * @Date: 2025/4/8 15:42
 */
@Data
public class AuthorAffiliation {
    private String name;
    private Set<String> units = new HashSet<>();
    private Set<String> depts = new HashSet<>();

    public void addUnit(String unit) {
        this.units.add(unit);
    }

    public void addDepts(List<String> depts) {
        this.depts.addAll(depts);
    }

    public AuthorAffiliation() {
    }

    public AuthorAffiliation(String name) {
        this.name = name;
    }
}
